//
//  NewHotAskViewCell.m
//  Hxcsfw
//
//  Created by 企友软mac on 2018/2/12.
//  Copyright © 2018年 企友软mac. All rights reserved.
//

#import "NewHotAskViewCell.h"

@implementation NewHotAskViewCell

- (void)awakeFromNib {
    [super awakeFromNib];

    _lbTypeL.hidden = YES;
    _lbTypeM.hidden = YES;
    _lbTypeR.hidden = YES;
    _lbTypeTop.hidden = YES;
    
    [self.btnAnswerReport setImageEdgeInsets:UIEdgeInsetsMake(10, 10, 10, 10)];
    [self.btnAnswerPolicy setImageEdgeInsets:UIEdgeInsetsMake(10, 10, 10, 10)];
    [self.btnAnswerNew setImageEdgeInsets:UIEdgeInsetsMake(10, 10, 10, 10)];

    _imgKcsdLeft.layer.masksToBounds = YES;
    _imgKcsdMiddle.layer.masksToBounds = YES;
    _imgKcsdRight.layer.masksToBounds = YES;

    _imgKcsdLeft.layer.cornerRadius = 6;
    _imgKcsdMiddle.layer.cornerRadius = 6;
    _imgKcsdRight.layer.cornerRadius = 6;

    _imgAnswerNew.layer.masksToBounds = YES;
    _imgAnswerPolicy.layer.masksToBounds = YES;
    _imgAnswerReport.layer.masksToBounds = YES;

    _imgAnswerNew.layer.cornerRadius = 6;
    _imgAnswerPolicy.layer.cornerRadius = 6;
    _imgAnswerReport.layer.cornerRadius = 6;

    if (iPhone5SE) {
        _leftConH.constant = 60;
        _middleConH.constant = 60;
        _rightConH.constant = 60;
    } else if (iPhone6Plus_6sPlus) {
        _leftConH.constant = 75;
        _middleConH.constant = 75;
        _rightConH.constant = 75;
    } else if (iPhone6_6s) {
        _leftConH.constant = 70;
        _middleConH.constant = 70;
        _rightConH.constant = 70;
    } else {
        _leftConH.constant = 70;
        _middleConH.constant = 70;
        _rightConH.constant = 70;
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

- (IBAction)btnClick:(UIButton *)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(delegatAskBtnClick:)]){
        [self.delegate delegatAskBtnClick:sender];
    }
}

@end
